package cn.school.workflow.vo;

import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("t_workflow_use_person_apply")
@Data
public class UsePersonApplyVO extends BaseVO {

    private static final long serialVersionUID = -386016507599640822L;

    @ApiModelProperty(value = "申请单编号")
    private String applyNo;

    @ApiModelProperty(value = "流程ID")
    private String processId;

    @ApiModelProperty(value = "申请人")
    private String applyUser;

    @ApiModelProperty(value = "申请部门Id")
    private String applyUserDeptId;

    @ApiModelProperty(value = "申请部门名称")
    private String applyUserDeptName;

    @ApiModelProperty(value = "到岗日期")
    private String workDate;

    @ApiModelProperty(value = "用人类型")
    private String usePersonType;

    @ApiModelProperty(value = "用人原因")
    private String usePersonReason;

    @ApiModelProperty(value = "岗位要求")
    private String workRequire;

    @ApiModelProperty(value = "岗位职责")
    private String workDuty;

    @ApiModelProperty(value = "状态 0-草稿 1-待审批 2-审批被驳回 3-流程正常结束")
    private String status;

    @ApiModelProperty(value = "上传后文件地址，多文件逗号分割")
    private String fileList;

    @ApiModelProperty(value = "源文件名称多文件逗号分割")
    private String fileResourceNames;

    @ApiModelProperty(value = "下级审批人")
    private String currApprovedBy;

    @ApiModelProperty(value = "抄送人")
    private String ccUsers;

    @TableField(exist = false)
    private Integer pageSize;

    @TableField(exist = false)
    private Integer pageNum;

    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
